<!DOCTYPE html >
<html xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
      xmlns:sec="http://www.thymeleaf.org/extras/spring-security">
<body>
<div th:fragment="header">
    <div class="header" style="width:800px;">
        <div style="width:400px;float:left;height:100px;">
            <a th:href="@{/admin/home/index}">Admin Home</a>
        </div>
    </div>
    <div style="width:400px;float:left;height:100px;">

        <div sec:authorize="isAuthenticated()">
            <div th:text="${#authentication.name}">
                user name
            </div>
        </div>


        <a th:href="@{/user/logout}">登出</a>
    </div>

    <div style="clear:both;"></div>
</div>
</body>
</html>
